package com.wxg.common.core.domain.constant;

/**
 * @author void
 * @date 2019/6/24 11:01
 * @desc
 */
public interface SysConstant {

    enum Version{
        Global("global", "global"),
        Website("website", "website"),
        Mid("mid", "mid");

        /**
         * redis缓存名
         */
        private String cacheKey;
        /**
         * url前缀
         */
        private String urlPrefix;

        Version(String cacheKey, String urlPrefix) {
            this.cacheKey = cacheKey;
            this.urlPrefix = urlPrefix;
        }

        public String getCacheKey() {
            return cacheKey;
        }

        public String getUrlPrefix() {
            return urlPrefix;
        }
    }
}
